package com.emma.dao;

import com.emma.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Map;

public interface UserDao {

    @Select("SELECT * FROM `tab_user` where username=#{condition.username} and password=#{condition.password}")
    User findUser(@Param("condition") Map<String,Object> condition);
}
